package com.devplatform.pojo.article;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("article_ban")
public class ArticleBan {
    @TableId(type = IdType.AUTO)
    private Long abanId;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long articleId;
    private String articleBanType;
    private String articleBanReason;
    private LocalDateTime banTime;

    @TableField("is_processed")
    private Integer isProcessed; // 0-未处理，1-已处理
    @TableField("processed_time")
    private LocalDateTime processedTime;

    private String unbanReason;
}